Providing policy-based operating system services in a hypervisor on a computing system

ABSTRACT

Methods, apparatus, and products are disclosed for providing policy-based operating system services in a hypervisor on a computing system. The computing system includes at least one compute node. The compute node includes an operating system and a hypervisor. The operating system includes a kernel. The hypervisor comprising a kernel proxy and a plurality of operating system services of a service type. Providing policy-based operating system services in a hypervisor on a computing system includes establishing, on the compute node, a kernel policy specifying one of the operating system services of the service type for use by the kernel proxy, and accessing, by the kernel proxy, the specified operating system service. The computing system may also be implemented as a distributed computing system that includes one or more operating system service nodes. One or more of the operating system services may be distributed among the operating system service nodes.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is related to U.S. patent application Ser. No. 11/553,040 entitled “PROVIDING POLICY-BASED OPERATING SYSTEM SERVICES IN AN OPERATING SYSTEM ON A COMPUTING SYSTEM”, filed on Oct. 26, 2006; U.S. patent application Ser. No. 11/553,095 entitled “PROVIDING POLICY-BASED OPERATING SYSTEM SERVICES IN AN OPERATING SYSTEM ON A COMPUTING SYSTEM”, filed on Oct. 26, 2006; and U.S. patent application Ser. No. 11/553,101 entitled “PROVIDING POLICY-BASED APPLICATION SERVICES TO AN APPLICATION RUNNING ON A COMPUTING SYSTEM”, filed on Oct. 26, 2006; all of which are incorporated by reference herein.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The field of the invention is data processing, or, more specifically, methods, apparatus, and products for providing policy-based operating system services in a hypervisor on a computing system.

2. Description of Related Art

The development of the EDVAC computer system of 1948 is often cited as the beginning of the computer era. Since that time, computer systems have evolved into extremely complicated devices. Today's computers are much more sophisticated than early systems such as the EDVAC. Computer systems typically include a combination of hardware and software components, application programs, operating systems, processors, buses, memory, input/output devices, and so on. As advances in semiconductor processing and computer architecture push the performance of the computer higher and higher, more sophisticated computer software has evolved to take advantage of the higher performance of the hardware, resulting in computer systems today that are much more powerful than just a few years ago.

One area in which computer software has evolved to take advantage of high performance hardware is the operating system. Early computers lacked any form of operating system. A system administrator loaded an application that had sole use of the machine. To operate the computer, an application had to directly access and control the computer hardware. Later, computers came with libraries of support code which were linked into an application to assist in operations such as input and output. These libraries were the genesis of the modern-day operating system. The computers, however, still ran only a single application at a time. Modern operating systems are capable of running multiple applications simultaneously. These modern operating systems also provide applications with abstractions of the computer hardware to simplify application development and aid the ability to port applications from one hardware platform to another.

The kernel is the central part in most computer operating systems which manages the system's resources and the communication between hardware and software components. As a basic component of an operating system, a kernel provides abstraction layers for hardware, especially for memory, processors and I/O that allows hardware and software to communicate. The kernel also makes these facilities available to applications and other operating system services through inter-process communication mechanisms and system calls.

These kernel tasks are performed differently for different kernels, depending on their design and implementation. In a monolithic kernel, all operating system services reside in and are executed using the same memory area. Because a monolithic kernel attempts to execute all the code in the same address space, monolithic kernel architectures are easier to design and implement than other solutions and are extremely efficient if well-written. The main disadvantages of monolithic kernels are the dependencies between system components. Large kernels become very difficult to maintain, and a bug in one portion of the kernel may crash the entire system.

In a microkernel architecture, the kernel provides simple abstractions over the hardware, with a set of primitives or system calls to implement minimal operating system services such as, for example, memory management, multitasking, and inter-process communication. Other services, including those normally provided by the kernel such as, for example, networking, are implemented in user-space programs that typically have their own address space. Microkernels are easier to maintain than monolithic kernels, but the large number of system calls and context switches may slow down the system.

Regardless of the kernel architecture used to implement an operating system, the set of operating system services provided in current operating systems are generally fixed when the operating system is installed. That is, the operating system utilizes the same memory management algorithm, the same I/O scheduling algorithm, the same networking algorithm, and so on, without regard to the applications that run on the hardware managed by the operating system. Often, however, one application may efficiently utilize computer resources when using one operating system service, while another application inefficiently utilizes computer resources when using the same operating system service. For example, an operating system service that provides I/O scheduling in the operating system may result in efficient use of computer resources for an application that are I/O intensive and result in an inefficient use of computer resources for an application that is not I/O intensive. Because current operating systems provide the same operating system services without regard to applications, current operating systems often do not efficiently manage the interaction between applications and the computer hardware. Readers will therefore appreciate that room for improvement exists in the manner in which operating system service are provided in an operating system.

Another area in which computer software has evolved to take advantage of high performance hardware is the set of software tools referred to as hypervisors. A hypervisor is a layer of system software that runs on the computer hardware beneath the operating system layer to allows multiple operating systems to run, unmodified, on a host computer at the same time. Hypervisors were originally developed in the early 1970's, when company cost reductions were forcing multiple scattered departmental computers to be consolidated into a single, larger computer—the mainframe—that would serve multiple departments. By running multiple operating systems simultaneously, the hypervisor brought a measure of robustness and stability to the system. Even if one operating system crashed, the others would continue working without interruption. Indeed, this even allowed beta or experimental versions of the operating system to be deployed and debugged without jeopardizing the stable main production system and without requiring costly second and third systems for developers to work on.

A hypervisor allows multiple operating systems to run on a host computer at the same time by providing each operating system with a set of virtual resources. These virtual resources provide each operating system a portion of the actual resources of the computer. These portions are usually implemented as time slices of the total time the resources are available for use. Using a hypervisor, the distribution of computer resources within a single computer makes the computer appear to function as if it were two or more independent computers. Utilizing a hypervisor to allow multiple operating systems to run on a host computer at the same time, however, does have a drawback. The administrative overhead required to operate the hypervisor reduces the overall computer resources available for running operating systems and the applications. The administrative overhead occurs in the form of processor context switches between the hypervisor and each operating system. Readers will therefore appreciate that the administrative overhead of the hypervisor may be reduced by implementing some of the functionality of the operating system in the hypervisor.

SUMMARY OF THE INVENTION

Methods, apparatus, and products are disclosed for providing policy-based operating system services in a hypervisor on a computing system. The computing system includes at least one compute node. The compute node includes an operating system and a hypervisor. The operating system includes a kernel. The hypervisor comprising a kernel proxy and a plurality of operating system services of a service type. Providing policy-based operating system services in a hypervisor on a computing system includes establishing, on the compute node, a kernel policy specifying one of the operating system services of the service type for use by the kernel proxy in the hypervisor, and accessing, by the kernel proxy, the specified operating system service.

The computing system may also be implemented as a distributed computing system that includes one or more operating system service nodes. One or more of the operating system services may be distributed among the operating system service nodes. The kernel policy may also specify an operating system service node that is to provide the specified operating system service, and accessing, by the kernel proxy of the compute node, the specified operating system service may include accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node.

The foregoing and other objects, features and advantages of the invention will be apparent from the following more particular descriptions of exemplary embodiments of the invention as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts of exemplary embodiments of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 sets forth a network diagram illustrating an exemplary computing system for providing policy-based operating system services in a hypervisor according to embodiments of the present invention.

FIG. 2 sets forth a block diagram of automated computing machinery comprising an exemplary compute node useful in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

FIG. 3 sets forth a functional block diagram illustrating an exemplary compute node configured with a hypervisor useful in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

FIG. 4 sets forth a flow chart illustrating an exemplary method for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

FIG. 5 sets forth a flow chart illustrating a further exemplary method for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

FIG. 6 sets forth a flow chart illustrating a further exemplary method for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

FIG. 7 sets forth a flow chart illustrating a further exemplary method for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

Exemplary methods, apparatus, and products for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention are described with reference to the accompanying drawings, beginning with FIG. 1. FIG. 1 sets forth a network diagram illustrating an exemplary computing system (100) for providing policy-based operating system services in a hypervisor according to embodiments of the present invention. The exemplary computing system (100) of FIG. 1 includes a compute node (110). The compute node (110) includes an operating system (108) and a hypervisor (111). The operating system (108) includes a kernel (109). The hypervisor (111) includes a kernel proxy (120) and a plurality of operating system services (124) of a service type. The exemplary computing system (100) of FIG. 1 operates generally to provide policy-based operating system services in a hypervisor according to embodiments of the present invention by establishing, on the compute node, a kernel policy (122) specifying one of the operating system services (124) of the service type for use by the kernel proxy (120) in the hypervisor (111) and accessing, by the kernel (120), the specified operating system service.

In the example of FIG. 1, the exemplary computing system (100) is implemented as a distributed computing system. A distributed computing system is a computing system that uses two or more network connected computing devices to accomplish a common task. The distributed computer system (100) of FIG. 1 includes the compute node (110), operating system service nodes (112, 114, 116), and an administration node (118) connected together for data communications through network (101). The compute node (110) connects to network (101) through wireline connection (140). The operating system service node (112) connects to network (101) through wireline connection (142). The operating system service node (114) connects to network (101) through wireline connection (144). The operating system service node (116) connects to network (101) through wireline connection (146). The administration node (118) connects to network (101) through wireline connection (148). The common task in the distributed computing system (100) of FIG. 1 includes providing a policy-based operating system services in a hypervisor according to embodiments of the present invention.

In the example of FIG. 1, the compute node (110) is implemented using one of the nodes (102) installed in a computer rack (104). Each node (102) of FIG. 1 is a processing device that executes computer program instructions. Each node (102) includes one or more computer processors and computer memory operatively coupled to the computer processors. The nodes (102) of FIG. 1 are implemented as blade servers installed in server chassis that are, in turn, mounted on the computer rack (104). Readers will note, however, that implementing the nodes as blade servers is for explanation and not for limitation. In fact, the nodes of FIG. 1 may be implemented as network connected workstations, computers connected together to form a computer cluster, computing devices in a parallel computer, or any other implementation as will occur to those of skill in the art.

In the example of FIG. 1, the compute node (110) is a node configured with a hypervisor (111) that includes a kernel proxy (120) and a kernel policy (122) useful in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention. The hypervisor (111) is a layer of system software that runs on the computer hardware beneath the operating system layer to allows multiple operating systems to run, unmodified, on a host computer at the same time. The hypervisor (111) provides each operating system with a set of virtual resources by allocating these resources to each operating system using logical partitions. A logical partition (‘LPAR’) is a set of data structures and services that enables distribution of computer resources within a single computer to make the computer function as if it were two or more independent computers.

In order to allow multiple operating systems to run at the same time, the hypervisor (111) assigns virtual processors (115) to each operating system (108, 117) and schedules virtual processors (115) on the physical processors of the compute node (110). A virtual processor is a subsystem that implements assignment of processor time to a logical partition. A shared pool of physical processors supports the assignment of partial physical processors (in time slices) to a logical partition. Such partial physical processors shared in time slices are referred to as ‘virtual processors.’ A thread of execution is said to run on a virtual processor when it is running on the virtual processor's time slice. Sub-processor partitions time-share a physical processor among a set of virtual processors, in a manner that is invisible to an operating system running in a logical partition. Unlike multiprogramming within the operating system where a thread can remain in control of the physical processor by running in interrupt-disabled mode, in sub-processor partitions, the thread is still pre-empted by the hypervisor at the end of its virtual processor's time slice, in order to make the physical processor available to a different virtual processor.

In the example of FIG. 1, the hypervisor (111) allocates virtual resources to a logical partition (103) that provides an execution environment for application (106) and operating system (108). The hypervisor (111) also allocates virtual resources to a logical partition (105) that provides an execution environment for application (107) and guest operating system (117). Each application (106, 107) is a set of computer program instructions implementing user-level data processing. Each application (106, 107) may be a stand-alone application in which all the computer program instructions of each application (106, 107) are executed on a single compute node, or each application (106, 107) may be a distributed application in which portions of the computer program instructions are executed serially or in parallel with other portions of the computer program instructions being executed on other compute nodes.

In the exemplary system (100) of FIG. 1, the operating system (117) controls the execution of the application (107) on the compute node (110). The operating system (117) of FIG. 1 is system software that manages the virtual resources allocated to the logical partition (105) by the hypervisor (111). The operating system (117) performs basic tasks such as, for example, controlling and allocating virtual memory, prioritizing the processing of instructions, controlling virtualized input and output devices, facilitating networking, and managing a virtualized file system.

Similarly, the operating system (108) of FIG. 1 controls the execution of the application (106) on the compute node (110). The application (106) of FIG. 1 accesses resources provided by the operating system (108) through the kernel (109). The kernel (109) is the core component of the operating system (108) that manages the system's resources and the communication between applications and virtual resources provided by the hypervisor (111). The kernel (109) provides software applications with abstraction layers of the virtual hardware resources that allow the applications to utilize these virtual hardware resources. The kernel (109) makes these abstraction layers available to user-level applications through inter-process communication mechanisms and a kernel application programming interface (‘API’) (119).

In the example of FIG. 1, the hypervisor (111) is configured to carry out much of the actual implementation of the operating system (108) using the kernel proxy (120) and the operating system service (124). The kernel proxy (120) is system software that provides operating system services typically implemented in the kernel of an operating system. When the operating system (108) requires a service that is configured in the hypervisor (111), the kernel (109) requests that the kernel proxy (120) perform the required service. The kernel (109) access the kernel proxy (120) using inter-process communications or through a kernel proxy API (121). Configuring the hypervisor (111) to carry out as much of the actual implementation of the operating system (108) as possible advantageously provides an extremely light-weight operating system.

In the exemplary system (100) of FIG. 1, the relationship between the kernel proxy (120) and the operating system services (124) is modeled after a microkernel architecture. That is, the kernel proxy (120) includes implementations of basic types of operating system services such as memory management, process management, and inter-process communication. Other operating system services (124) such as, for example, networking, interrupt handling, I/O scheduling, device drivers, file system services, and so on, however, are implemented using separate operating system components, each component having a thread of execution distinct from the kernel proxy (120). The kernel proxy (120) accesses these operating system services (124) using inter-process communication or a system call to the service's API (125).

In the exemplary system (100) of FIG. 1, each operating system service (124) is system software that either implements a service type not implemented in the kernel proxy (120) itself or implements a specialized version of a service type already provided by the kernel proxy (120). For explanation, consider, for example, that the kernel proxy (120) of FIG. 1 does not implement any services of the file system service type. In such an example, one of the operating system services (124) may implement a file system service for the Unix File System, while a second operating system service (124) may implement a file system service for the Reiser File System. Depending on the kernel policy (122) configured in the hypervisor (111), the kernel proxy (120) would provide file system services using either the Unix File System or the Reiser File System. Consider, further for example, that the kernel proxy (120) of FIG. 1 implements a generic memory management service. In such an example, one of the operating system services (124) may implement a memory management service tailored for intensive I/O operations that the kernel proxy (120) may use instead of the generic memory management algorithm implemented in the kernel proxy (120) depending on the configuration of the kernel policy (122).

In the example of FIG. 1, each operating system service (124) provides an operating system service of a particular service type. The types of service provided by the operating system services (124) may include, for example, task schedulers, file systems, memory management, device drivers, I/O schedulers, interrupt/signal handling, security, job submission, tty handling, and so on. In the exemplary system (100) of FIG. 1, the operating system services for services of the same service type have a same application programming interface. That is, the service API (125) for each service (124) of a particular service type have the same set of member methods and parameters that the kernel proxy (120) may use to access the operating system services (124). Because the services of each service type have the same service API, the kernel proxy (120) may access the operating system service specified in the kernel policy (122) using the same application programming interface regardless of which operating system service is specified in the kernel policy (122) for the particular service type.

In the exemplary system (100) of FIG. 1, one or more of the operating system services (124) are distributed among the operating system service nodes (112, 114, 116). That is, the computer program instructions for implementing one or more of the operating system services (124) reside on the operating system service nodes (112, 114, 116). The corresponding operating system services (124) for each of the services (132, 134, 136) may be implemented as copies of the computer program instructions implementing each of the services (132, 134, 136). The corresponding operating system services (124) for each of the services (132, 134, 136) may also be implemented using a data communications subsystem that accesses the operating system services (132, 134, 136) on the operating system service nodes (112, 114, 116). Examples of such a data communication subsystem may include a web services engine, a CORBA object on the compute node (110) that accesses the operating system services (132, 134, 136) on the operating system service nodes (112, 114, 116) using remote procedure calls, use of an MPI library, or any other implementation as will occur to those of skill in the art.

‘CORBA’ refers to the Common Object Request Broker Architecture, a computer industry specifications for interoperable enterprise applications produced by the Object Management Group (‘OMG’). CORBA is a standard for remote procedure invocation first published by the OMG in 1991. CORBA can be considered a kind of object-oriented way of making remote procedure calls, although CORBA supports features that do not exist in conventional remote procedure calls. CORBA uses a declarative language, the Interface Definition Language (“IDL”), to describe an object's interface. Interface descriptions in IDL are compiled to generate ‘stubs’ for the client side and ‘skeletons’ on the server side. Using this generated code, remote method invocations effected in object-oriented programming languages, such as C++ or Java, look like invocations of local member methods in local objects.

‘MPI’ refers to ‘Message Passing Interface,’ a prior art parallel communications library, a module of computer program instructions for data communications on parallel computers. Examples of prior-art parallel communications libraries that may be useful for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention include MPI and the ‘Parallel Virtual Machine’ (‘PVM’) library. PVM was developed by the University of Tennessee, The Oak Ridge National Laboratory and Emory University. MPI is promulgated by the MPI Forum, an open group with representatives from many organizations that define and maintain the MPI standard. MPI at the time of this writing is a de facto standard for communication among nodes running a parallel program on a distributed memory parallel computer. This specification sometimes uses MPI terminology for ease of explanation, although the use of MPI as such is not a requirement or limitation of the present invention.

In the example of FIG. 1, the operating system service nodes (112, 114, 116) are implemented using the nodes (102) installed in the computer rack (104). Each operating system service node (112, 114, 116) is a node that provides operating system services to a hypervisor installed on a compute node. Each operating system service node may provide one or more operating system services to one or more hypervisors running on one or more compute nodes. In distributed computing systems with many nodes, however, each operating system service node typically provides only one operating system service due to the abundance of nodes in the system. In the example of FIG. 1, the operating system service node (112) provides operating system service (132) to kernel (120); the operating system service node (114) provides operating system service (134) to kernel (120); and the operating system service node (116) provides operating system service (136) to kernel (120).

To provide operating system services to the kernel (120), each operating system service node (112, 114, 116) of FIG. 1 has installed upon it an operating system service server. The operating system service node (112) includes service server (133), the operating system service node (114) includes service server (135), and the operating system service node (116) includes service server (137). Each service server (133, 135, 137) is a software component that provides an operating system service to a hypervisor in response to a request sent by the hypervisor or in response to receiving an instruction from a system administrator. Each operating system service server (133, 135, 137) may provide an operating system service to a hypervisor by transmitting the computer program instructions implementing the requested operating system service to the hypervisor and allowing the compute node on which the hypervisor is installed to execute the computer program instructions. Each operating system service server (133, 135, 137) may also provide an operating system service by instructing the operating system service node of the server to execute the computer program instructions implementing the requested operating system service. The kernel proxy (120) of hypervisor (111) may communicate with the operating system service servers (133, 135, 137) using web services, calling member methods of a CORBA object, use of an MPI library, or any other data communications implementation as will occur to those of skill in the art.

As mentioned above, the hypervisor (111) includes two or more operating system services (124) for a particular service type. For example, the hypervisor (111) may include two different implementations of file system services for use by the kernel proxy depending on the configuration of the exemplary system (100). In another example, the hypervisor (111) may include two different implementations of memory management services depending on the needs of the application (106). Having more than one operating system service for a particular service type advantageously provides the flexibility to optimize the operating system's service algorithms according to the hardware and software environment of the compute node (110).

The kernel policy (122) of FIG. 1 is a table that maps one of the operating system services (124) to a type of operating system service used by the kernel proxy (120) in the hypervisor (111). Typically, the kernel policy (122) is established on the compute node to optimize the utilization of node resources by an application (106) configured for execution on the node. In the example of FIG. 1, the kernel proxy (120) uses the kernel policy (122) to identify which operating system service to use in the hypervisor for a particular service type. Regardless of whether the operating system services (124) reside locally on the compute node (110) or are distributed on other nodes such as operating system service nodes (112, 114, 116), the kernel policy (122) specifies one of the operating system services of a particular service type for use in the hypervisor (111). When the operating system service specified in the kernel policy (122) is distributed on one of the operating system service nodes (112, 114, 116), the kernel policy (122) also specifies an operating system service node that is to provide the specified operating system service. Using the kernel policy (122), the kernel proxy (120) provides policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention by accessing the operating system service specified in the policy (122).

Often the kernel policy (122) will not specify an operating system service for one of the service types used in the hypervisor (111) or the kernel proxy (120) will be unable to access the operating system service specified in the kernel policy (122). In the example of FIG. 1, the hypervisor (111) therefore includes a default operating system service (126). The default operating system service (126) is an operating system service of a particular service type that the kernel proxy (120) may use when the kernel policy (122) does not specify an operating system service for the particular service type or the kernel proxy (120) is unable to access the operating system service specified in the policy (122). Consider, for example, that the kernel policy (122) does not specify a file system service for use by the hypervisor (111), that the kernel proxy (120) does not implement a file system service itself, and that the default operating system service implements the Unix File System. Because the kernel proxy (120) does not implement a file system service and no file system service is specified in the kernel policy (122), the kernel proxy (120) in such an example will use the default operating system service (126) implementing the Unix File System. The kernel proxy (120) may access the default operating system service (126) using inter-process communication or the default operating system service API (127).

In the example of FIG. 1, the distributed computing system (100) is configured by a system administrator (130) through an administration node (118). The administration node (118) of FIG. 1 is a computing device that administers the configuration of the computing system (100) of FIG. 1. The administration node (118) may be implemented as one of the nodes (102) installed in the rack (104), a workstation network connected to the nodes (102), or any other computer as will occur to those of skill in the art.

In the exemplary system (100) of FIG. 1, the administration module (118) has installed upon it an administration module (128). The administration module (128) is a software component through which a system administrator (130) configures the exemplary computer system (100). The administration module (128) allows a system administrator (130) to configure the exemplary computer system (100) by providing a user interface for the system administrator (130) to interact with the administration module (128) and by configuring the hypervisor (111), the operating systems (108, 117) and the applications (106, 107) provided by the system administrator (130) on one or more compute nodes such as, for example, the compute node (110). The administration module (128) includes a set of computer program instructions for providing policy-based operating system services in a hypervisor on a computing system by establishing, on the compute node (110), a kernel policy specifying one of the operating system services (124) of a service type for use by the kernel policy (120) in the hypervisor (111) according to embodiments of the present invention.

The arrangement of servers and other devices making up the exemplary system illustrated in FIG. 1 are for explanation, not for limitation. Data processing systems useful according to various embodiments of the present invention may include additional servers, routers, other devices, and peer-to-peer architectures, not shown in FIG. 1, as will occur to those of skill in the art. Networks in such data processing systems may support many data communications protocols, including for example Transmission Control Protocol (‘TCP’), Internet Protocol (‘IP’), HyperText Transfer Protocol (‘HTTP’), Wireless Access Protocol (‘WAP’), Handheld Device Transport Protocol (‘HDTP’), the MPI protocol, and others as will occur to those of skill in the art. Various embodiments of the present invention may be implemented on a variety of hardware platforms in addition to those illustrated in FIG. 1. For example, the computing system useful for providing policy-based operating system services in a hypervisor according to embodiments of the present invention may also be implemented as a parallel computer such as, for example, IBM's BlueGene/L.

Providing policy-based operating system services in a hypervisor on a computing system in accordance with the present invention is generally implemented with computers, that is, with automated computing machinery. In the system of FIG. 1, for example, all the nodes are implemented to some extent at least as computers. For further explanation, therefore, FIG. 2 sets forth a block diagram of automated computing machinery comprising an exemplary compute node (110) useful in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention. The compute node (110) of FIG. 2 includes at least one computer processor (156) or ‘CPU’ as well as random access memory (168) (‘RAM’) which is connected through a high speed memory bus (166) and bus adapter (158) to processor (156) and to other components of the compute node.

Stored in RAM (168) is a hypervisor (111), applications (106, 107), and operating systems (108, 117). The hypervisor (111) allocates virtual resources to a logical partition (103) that provides an execution environment for the application (106) and the operating system (108). The operating system (108) includes a kernel (109). The hypervisor (111) also allocates virtual resources to a logical partition (105) that provides an execution environment for the application (107) and the guest operating system (117). Each logical partition (103, 105) is a set of data structures and services that enables distribution of computer resources within a single computer to make the computer function as if it were two or more independent computers.

In FIG. 2, the hypervisor (111) includes virtual processors (115), a kernel proxy (120), a kernel policy (122), operating system services (124), and default operating system service (126). The kernel policy (122) of FIG. 2 is a table that maps one of the operating system services (124) to a type of operating system service used by the kernel proxy (120). The virtual processors (115) are subsystems that implement assignments of processor time to a logical partition. The applications (106, 107), the operating systems (108, 117), the kernel (109), the hypervisor (111), the kernel proxy (120), the operating system services (124), and the default operating system service (126) illustrated in FIG. 2 are software components, that is computer program instructions, that operate as described above with reference to FIG. 1 regarding the compute node. Operating systems that may be improved for providing policy-based operating system services in a hypervisor on a computing system in accordance with the present invention may include UNIX™, Linux™, Microsoft NT™, IBM's AIX™, IBM's i5/OS™, and others as will occur to those of skill in the art. The operating systems (108, 117), the applications (106, 107), the logical partitions (103, 105), and the hypervisor (111) in the example of FIG. 2 are shown in RAM (168), but many components of such software typically are stored in non-volatile memory also, for example, on a disk drive (170).

The exemplary compute node (110) of FIG. 2 includes bus adapter (158), a computer hardware component that contains drive electronics for high speed buses, the front side bus (162), and the memory bus (166), as well as drive electronics for the slower expansion bus (160). Examples of bus adapters useful in compute nodes useful according to embodiments of the present invention include the Intel Northbridge, the Intel Memory Controller Hub, the Intel Southbridge, and the Intel I/O Controller Hub. Examples of expansion buses useful in compute nodes useful according to embodiments of the present invention may include Peripheral Component Interconnect (‘PCI’) buses and PCI Express (‘PCIe’) buses.

Although not depicted in the exemplary compute node (110) of FIG. 2, the bus adapter (158) may also include drive electronics for a video bus that supports data communication between a video adapter and the other components of the compute node (110). FIG. 2 does not depict such video components because a compute node is typically implemented as a blade server installed in a server chassis or a node in a parallel computer with no dedicated video support. Readers will note, however, that a compute node useful in embodiments of the present invention may include such video components.

The exemplary compute node (110) of FIG. 2 also includes disk drive adapter (172) coupled through expansion bus (160) and bus adapter (158) to processor (156) and other components of the exemplary compute node (110). Disk drive adapter (172) connects non-volatile data storage to the exemplary compute node (110) in the form of disk drive (170). Disk drive adapters useful in compute nodes include Integrated Drive Electronics (‘IDE’) adapters, Small Computer System Interface (‘SCSI’) adapters, and others as will occur to those of skill in the art. In addition, non-volatile computer memory may be implemented for a compute node as an optical disk drive, electrically erasable programmable read-only memory (so-called ‘EEPROM’ or ‘Flash’ memory), RAM drives, and so on, as will occur to those of skill in the art.

The exemplary compute node (110) of FIG. 2 includes one or more input/output (‘I/O’) adapters (178). I/O adapters in compute node implement user-oriented input/output through, for example, software drivers and computer hardware for controlling output to display devices such as computer display screens, as well as user input from user input devices (181) such as keyboards and mice. Although not depicted in the example of FIG. 2, compute nodes in other embodiments of the present invention may include a video adapter, which is an example of an I/O adapter specially designed for graphic output to a display device such as a display screen or computer monitor. A video adapter is typically connected to processor (156) through a high speed video bus, bus adapter (158), and the front side bus (162), which is also a high speed bus.

The exemplary compute node (110) of FIG. 2 includes a communications adapter (167) for data communications with other computers (182) and for data communications with a data communications network (101). Such data communications may be carried out serially through RS-232 connections, through external buses such as a Universal Serial Bus (‘USB’), through data communications networks such as IP data communications networks, and in other ways as will occur to those of skill in the art. Communications adapters implement the hardware level of data communications through which one computer sends data communications to another computer, directly or through a data communications network. Examples of communications adapters useful for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention include modems for wired dial-up communications, IEEE 802.3 Ethernet adapters for wired data communications network communications, and IEEE 802.11b adapters for wireless data communications network communications.

Although FIG. 2 is discussed with reference to an exemplary compute node, readers will note that automated computing machinery comprising exemplary operating system service nodes and exemplary administration nodes useful in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention are similar to the exemplary compute node (110) of FIG. 2. That is, such exemplary operating system service nodes and exemplary administration nodes include one or more processors, bus adapters, buses, RAM, communications adapters, I/O adapters, disk drive adapters, and other components similar to the exemplary compute node (110) of FIG. 2 as will occur to those of skill in the art.

For further explanation the allocating virtual processors to logical partitions by the hypervisor, FIG. 3 sets forth a functional block diagram illustrating an exemplary compute node configured with a hypervisor useful in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

The system of FIG. 3 includes LPAR (302) and LPAR (304). The system of FIG. 3 includes two operating systems (306, 308), one each in LPAR (302) and LPAR (304) respectively. The system of FIG. 3 includes six logical processors (320-325), two for operating system (306) in LPAR (302) and four for operating system (308) in LPAR (304). A logical processor is an operating system's structure for scheduling threads for execution. It represents a portion of the resources of a processor that is capable of carrying out the execution of a thread. Six threads (310-315) run on the six logical processors (320-325) respectively, one thread per logical processor. The system of FIG. 3 includes a hypervisor (111) and four virtual processors, two virtual processors (330, 331) assigned to LPAR (302) and two virtual processors (332, 333) assigned to LPAR (304).

The system of FIG. 3 also includes three physical processors (340, 342, 344). In the examples in this specification, the physical processors (340, 342, 344) are shared according to processing units with 1.0 processing units representing the processing capacity of one physical processor. In this example, the processing capacity of the three physical processors (340, 342, 344) is apportioned to the LPARs as follows:

-   -   All of the processing capacity of physical processor (340) is         assigned entirely to virtual processor (330), so that logical         processor (320) has available to it the entirety of physical         processor (340).     -   One-half the processing capacity of physical processor (342) is         assigned to virtual processor (331), so that logical processor         (321) has available to it in time slices one-half of physical         processor (342).     -   One-half the processing capacity of physical processor (342) is         assigned to virtual processor (332). Virtual processor (332) is         assigned to LPAR (304) which runs in simultaneous multithreading         mode with two logical processors (322, 323) for virtual         processor (332). Logical processor (322) and logical processor         (323) each has available to it in time slices one-fourth of the         processing capacity of physical processor (342).     -   All of the processing capacity of physical processor (344) is         assigned to virtual processor (333). Virtual processor (333) is         assigned to LPAR (304) which runs in simultaneous multithreading         mode with two logical processors (324, 325) for virtual         processor (333). Logical processor (324) and logical processor         (325) each has available to it in time slices one-half of the         processing capacity of physical processor (344).

The number, arrangement, and assignments of physical processors, virtual processors, and logical processors in the system of FIG. 3 are for explanation only, and not for a limitation of the present invention. A compute node useful for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention may support a multiplicity of logical partitions and may include any number, arrangement, or assignment of physical processors, virtual processors, and logical processors.

For further explanation, FIG. 4 sets forth a flow chart illustrating an exemplary method for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention. The computing system includes at least one compute node. The compute node includes an operating system and a hypervisor. The operating system includes a kernel. The hypervisor includes a kernel proxy and a plurality of operating system services of a service type.

The method of FIG. 4 includes establishing (400), on the compute node, a kernel policy (122) specifying one of the operating system services of a service type for use by the kernel proxy in the hypervisor. The kernel policy (122) of FIG. 4 is a table that maps an operating system service to a type of operating system service used by the kernel proxy. In the example of FIG. 4, each record of the kernel policy (122) identifies which operating system service to use by the kernel proxy in the hypervisor for a particular service type. To identify which operating system service to use in the hypervisor for a particular service type, each record of the kernel policy (122) includes an operating system service identifier (402) and a service type (404). Examples types (404) of operating system services that may be specified in the kernel policy (122) may include task schedulers, file systems, memory management, device drivers, I/O schedulers, interrupt/signal handling, security, job submission, tty handling, and so on. For an example of a kernel policy (122) useful in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention, consider the following table:

TABLE 1 Example Kernel Policy OS Service ID Service Type UFS_Service File_System Round_Robin_MM_Algorithm Memory_Management Limited_I/O_Access I/O_Scheduler

In the exemplary kernel policy of Table 1, associating the value ‘UFS_Service’ for the operating system service identifier (402) with the value ‘File_System’ for the service type (404) specifies that the kernel proxy use the operating system service that implements the Unix File System when the kernel proxy needs to access a file system service type. Associating the value ‘Round_Robin_MM_Algorithm’ for the operating system service identifier (402) with the value ‘Memory_Management’ for the service type (404) specifies that the kernel proxy use the operating system service that implements a round robin algorithm when the kernel proxy need to access a memory management service type. Associating the value ‘Limited_I/O_Access’ for the operating system service identifier (402) with the value ‘I/O_Scheduler’ for the service type (404) specifies that the kernel proxy use the operating system service that implements limited I/O access when the kernel proxy uses a I/O scheduler service type. Readers will note that exemplary kernel policy (122) above is for explanation and not for limitation. Other kernel policies as will occur to those of skill in the art may also be useful in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

In the method of FIG. 4, establishing (400), on the compute node, a kernel policy (122) specifying one of the operating system services of a service type for use by the kernel proxy in the hypervisor may be carried out by receiving, in an administration module from a system administrator, a mapping between the operating system services and the service types and creating, by the administration module, the kernel policy (122) on the compute node according to the mappings. The administration module is a software component that the system administration may use to configure the computing system that includes the compute node. The particular compute node on which the administration module creates the kernel policy (122) is typically specified by the system administrator through a user interface provided by the administration module. The administration module may be installed directly on the compute node or any other computer network connected to the compute node. The administration module may create the kernel policy (122) on the compute node through a data communication connection implemented using shared memory space, a CORBA framework, a JTAG network, web services, a MPI library, or any other data communication implementation as will occur to those of skill in the art.

‘JTAG’ is the usual name used for the IEEE 1149.1 standard entitled Standard Test Access Port and Boundary-Scan Architecture for test access ports used for testing printed circuit boards using boundary scan. JTAG is so widely adapted that, at this time, boundary scan is more or less synonymous with JTAG. JTAG is used not only for printed circuit boards, but also for conducting boundary scans of integrated circuits, and is also useful as a mechanism for debugging embedded systems, providing a convenient ‘back door’ into the system. Using a JTAG network, the administration module may efficiently configure processor registers and memory in the compute node for use in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

The method of FIG. 4 includes specifying (401), by the kernel proxy, a service type (405) for use by the kernel proxy in the hypervisor. The kernel proxy may specify (401) a service type (405) for use in the hypervisor according to the method of FIG. 4 by including an instruction that contains the service type (405) in the computer program instructions implementing the kernel proxy at a particular point along the flow of execution. For example, at a particular point along the flow of execution for the kernel proxy, the computer program instructions implementing the kernel proxy may contain machine code representing the following instruction:

-   -   Execute_Service(‘File_System’);

In the exemplary instruction above, the function ‘Execute_Service’ is a function that instructs the kernel proxy to execute the operating system service specified in the kernel policy (122) for the service type (405) having a value of ‘File_System.’ Including such an exemplary instruction in the computer program instructions implementing the kernel proxy specifies that the hypervisor use a service of the file system service type. Readers will note that the exemplary instruction above is for explanation and not for limitation. Other instructions as will occur to those of skill in the art may also be useful in providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention.

The method of FIG. 4 includes retrieving (403), by the kernel proxy, the specified operating system service (407) from the kernel policy (122) in dependence upon the specified service type (405). Retrieving (403), by the kernel proxy, the specified operating system service (407) from the kernel policy (122) in dependence upon the specified service type (405) according to the method of FIG. 4 may be carried out by looking up in the kernel policy (122) the operating system service identifier (402) associated with the service type (404) having the same value as the specified service type (405).

The method of FIG. 4 also includes determining (406), by the kernel proxy, whether the kernel proxy is able to access the specified operating system service (407). Determining (406), by the kernel proxy, whether the kernel proxy is able to access the specified operating system service (407) according the method of FIG. 4 may be carried out by calling a function of the API for the specified operating system service (407). If the function call returns an error to the kernel proxy, then the kernel proxy is unable to access the specified operating system service. If the function call does not return an error to the kernel proxy, then the kernel proxy is able to access the specified operating system service. As mentioned above, the operating system services for the same service type may have a same application programming interface. The APIs for each service type may be coded into the computer program instructions implementing the kernel proxy.

The method of FIG. 4 includes executing (408), by the compute node, computer program instructions implementing a default operating system service of the service type (404) when the kernel proxy is unable to access the specified operating system service (407). Executing (408), by the compute node, computer program instructions implementing a default operating system service of the service type (404) according to the method of FIG. 4 may be carried out by looking up in a default service table (412) the default operating system service identifier (414) associated with the service type (404) and calling a function of the API for the default operating system service represented by the default operating system service identifier (414). The default service table (412) is similar to the kernel policy (122). Each record of the default service table (412) identifies which default operating system service to use in the hypervisor for a particular service type. Each record of the default service table (412) includes a default operating system service identifier (414) and a service type (404). Although the default operating system service of FIG. 4 is specified in the default service table (412), readers will note that such an embodiment is for explanation and not for limitation. In other embodiments, the kernel policy (122) may contain a field that specifies the default operating system service for use in the operating system for a particular service type or the default service for each service type may be coded into the kernel proxy itself.

The method of FIG. 4 also includes accessing (410), by the kernel proxy, the specified operating system service (407). Accessing, by the kernel proxy, the specified operating system service (407) according to the method of FIG. 4 may be carried out by calling a function of the API for the specified operating system service (407). Calling a function of the API for the specified operating system service (407), however, is for explanation only and not for limitation. In another embodiment, an administration module may modify, according to the kernel policy (122), entry and exit hooks in the kernel proxy's code so that processor control is transferred from the kernel proxy to the operating system services at the proper points in the kernel proxy's code during the flow of execution. In such an example, accessing (410) the specified operating system service for a service type may be carried out simply by executing the computer program instructions implementing the kernel proxy.

As mentioned above, operating system services may be distributed among one or more operating system service nodes in a distributed computing system. When the operating system services are distributed among one or more operating system service nodes, accessing (410), by the kernel proxy, the specified operating system service may be carried out by retrieving, from the operating system service node, computer program instructions implementing the specified operating system service, and executing, by the compute node, the computer program instructions implementing the specified operating system service as discussed below with reference to FIG. 6. Accessing (410), by the kernel proxy, the specified operating system service may also be carried out by requesting, by the kernel proxy, that the operating system service node perform the specified operating system service, and executing, by the operating system service node, computer program instructions implementing the specified operating system service as discussed below with reference to FIG. 7.

As mentioned above, the kernel policy is a table that maps a particular operating system service to a type of operating system service used by the kernel proxy. The kernel policy, however, may not map an operating system service to each type of service used by the kernel proxy. As such, the kernel proxy often identifies whether the kernel policy specifies an operating system service for a particular service type and executes computer program instructions implementing a default operating system service of the specified service type if the kernel policy does not specify an operating system service of the specified service type. For further explanation, therefore, FIG. 5 sets forth a flow chart illustrating a further exemplary method for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention that includes identifying (500), by the kernel proxy, whether the kernel policy specifies an operating system service of the specified service type (405). In the example of FIG. 5, the computing system includes at least one compute node. The compute node includes an operating system and a hypervisor. The operating system includes a kernel. The hypervisor includes a kernel proxy and a plurality of operating system services of one service type.

The method of FIG. 5 is similar to the method of FIG. 4 in that the method of FIG. 5 includes establishing (400), on the compute node, a kernel policy (122) specifying one of the operating system services of the service type for use by the kernel proxy in the hypervisor, specifying (401), by the kernel proxy, a service type (405) for use by the kernel proxy in the hypervisor, retrieving (403), by the kernel proxy, the specified operating system service (407) from the kernel policy (122) in dependence upon the specified service type (405), and accessing (410), by the kernel proxy, the specified operating system service (407). The example of FIG. 5 is also similar to the example of FIG. 4 in that each record of the kernel policy (122) includes an operating system service identifier (402) and a service type (404). In addition, the example of FIG. 5 is similar to the example of FIG. 4 in that the example of FIG. 5 includes a default service table (412) and each record of the table (412) includes a default operating system service identifier (414) and a service type (404).

The method of FIG. 5 includes identifying (500), by the kernel proxy, whether the kernel policy (122) specifies an operating system service of the specified service type (405). Identifying (500), by the kernel proxy, whether the kernel policy (122) specifies an operating system service of the specified service type (405) according to the method of FIG. 5 may be carried out by searching the kernel policy (122) for a record having a value for the service type (404) that matches the value for the specified service type (405). If no record is found, then the kernel policy (122) does not specify an operating system service of the specified service type (405). If a record is found, then the kernel policy (122) does specify an operating system service of the specified service type (405). Readers will note that identifying (500) whether the kernel policy (122) specifies an operating system service of the specified service type (405) by searching the kernel policy (122) for a record having a value for the service type (404) that matches the value for the specified service type (405) is for explanation and not for limitation. In other embodiments of the present invention, the kernel policy (122) may contain a record for each service type for use in the operating system. In such embodiments, identifying (500) whether the kernel policy (122) specifies an operating system service of the specified service type (405) may be carried out by identifying whether the operating system service identifier (402) for a particular record in the kernel policy (122) contains a NULL value.

The method of FIG. 5 also includes executing (502), by the compute node, computer program instructions implementing a default operating system service of the specified service type (405) when the kernel policy (122) does not specify an operating system service of the specified service type (405). Executing (502), by the compute node, computer program instructions implementing a default operating system service of the specified service type (405) according to the method of FIG. 5 may be carried out by looking up in a default service table (412) the default operating system service identifier (414) associated with the service type (404) and calling a function of the API for the default operating system service represented by the default operating system service identifier (414). Although the default operating system service of FIG. 5 is specified in the default service table (412), readers will note that such an embodiment is for explanation and not for limitation. In other embodiments, the kernel policy (122) may contain a field that specifies the default operating system service for use in the operating system for a particular service type or the default service for each service type may be coded into the kernel proxy itself.

As mentioned above, operating system services may be distributed among one or more operating system service nodes in a distributed computing system. When the operating system services are distributed among one or more operating system service nodes, accessing, by the kernel proxy, the specified operating system service may be carried out by accessing the specified operating system service of the operating system service node. For further explanation, therefore, FIG. 6 sets forth a flow chart illustrating a further exemplary method for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention that includes accessing (602) the specified operating system service (407) of the operating system service node. In the example of FIG. 6, the computing system includes at least one compute node and one or more operating system service nodes. The compute node includes an operating system and a hypervisor. The operating system includes a kernel. The hypervisor includes a kernel proxy and a plurality of operating system services of one service type. In the example of FIG. 6, one or more of the operating system services are distributed among the operating system service nodes.

The method of FIG. 6 is similar to the method of FIG. 4 in that the method of FIG. 6 includes establishing (400), on the compute node, a kernel policy (122) specifying one of the operating system services of the service type for use by the kernel proxy in the hypervisor, specifying (401), by the kernel proxy, a service type (405) for use by the kernel proxy in the hypervisor, retrieving (403), by the kernel proxy, the specified operating system service (407) from the kernel policy (122) in dependence upon the specified service type (405), and accessing (410), by the kernel proxy, the specified operating system service (407). The example of FIG. 6 is also similar to the example of FIG. 4 in that each record of the kernel policy (122) includes an operating system service identifier (402) and a service type (404). In the example of FIG. 6, however, the kernel policy (122) also specifies an operating system service node that is to provide the specified operating system service (407) by including an operating system service node identifier (600) in each record. In the example of FIG. 6, the specified operating system service (407) is distributed on one of the operating system service nodes.

In the method of FIG. 6, accessing (410), by the kernel proxy, the specified operating system service (407) includes accessing (602) the specified operating system service (407) of the operating system service node. Accessing (602) the specified operating system service (407) of the operating system service node according to the method of FIG. 6 is carried out by retrieving (604), by the kernel proxy from the operating system service node, computer program instructions (606) implementing the specified operating system service (407). The computer program instructions (606) represent machine code implementing the specified operating system service (407). Although the computer program instructions (606) of FIG. 6 represent machine code, such a representation is for explanation and not for limitation. In fact, the computer program instructions (606) of FIG. 6 may also represent computer program instructions implemented in an assembly language or a high-level language such as, for example, Java.

Retrieving (604), by the kernel proxy from the operating system service node, computer program instructions (606) implementing the specified operating system service (407) according to the method of FIG. 6 may be carried out by transmitting an operating system service request to a service server on the operating system service node on which the specified operating system service (407) is distributed and receiving, from the service server, the computer program instructions (606) implementing the specified operating system service. The operating system service request is a request for an operating system service node to provide an operating system service to the kernel proxy in the hypervisor. The operating system service request may include the operating system service identifier (402) for the specified operating system service (407). The kernel proxy may transmit the operating system service request to a service server on an operating system service node and retrieve the computer program instructions (606) using web services, by calling a member method of a CORBA object, using an MPI library, or any other data communications implementation as will occur to those of skill in the art.

Accessing (602) the specified operating system service (407) of the operating system service node according to the method of FIG. 6 is also carried out by executing (608), by the compute node, the computer program instructions (606) implementing the specified operating system service (607). Executing (608), by the compute node, the computer program instructions (606) implementing the specified operating system service (607) according to the method of FIG. 6 may be carried out by scheduling the computer program instructions (606) implementing the specified operating system service (607) for execution on the compute node. As mentioned above, the computer program instructions (606) of FIG. 6 may represent computer program instructions implemented in an assembly language or a high-level language such as, for example, Java. In such an embodiment, executing (608) the computer program instructions (606) implementing the specified operating system service (607) may be carried out by interpreting the computer program instructions (606) into machine code and scheduling the machine code for execution on the compute node.

In the method of FIG. 6, accessing the specified operating system service of the operating system service node is carried out by executing the computer program instructions implementing the specified operating system service on the compute node. Accessing the specified operating system service of the operating system service node, however, may also be carried out by executing the computer program instructions implementing the specified operating system service on the operating system service node. For further explanation, therefore, FIG. 7 sets forth a flow chart illustrating a further exemplary method for providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention that includes executing (708), by the operating system service node, computer program instructions (706) implementing the specified operating system service (407). In the example of FIG. 7, the computing system includes at least one compute node and one or more operating system service nodes. The compute node includes an operating system and a hypervisor. The operating system includes a kernel. The hypervisor includes a kernel proxy and a plurality of operating system services of one service type. In the example of FIG. 7, one or more of the operating system services are distributed among the operating system service nodes.

The method of FIG. 7 is similar to the method of FIG. 4 in that the method of FIG. 7 includes establishing (400), on the compute node, a kernel policy (122) specifying one of the operating system services of the service type for use by the kernel proxy in the hypervisor, specifying (401), by the kernel proxy, a service type (405) for use by the kernel proxy in the hypervisor, retrieving (403), by the kernel proxy, the specified operating system service (407) from the kernel policy (122) in dependence upon the specified service type (405), and accessing (410), by the kernel proxy, the specified operating system service (407). The example of FIG. 7 is also similar to the example of FIG. 4 in that each record of the kernel policy (122) includes an operating system service identifier (402) and a service type (404). In the example of FIG. 7, however, the kernel policy (122) also specifies an operating system service node that is to provide the specified operating system service (407) by including an operating system service node identifier (600) in each record. In the example of FIG. 7, the specified operating system service (407) is distributed on one of the operating system service nodes.

In the method of FIG. 7, accessing (410), by the kernel proxy, the specified operating system service (407) includes accessing (602) the specified operating system service (407) of the operating system service node. Accessing (602) the specified operating system service (407) of the operating system service node according to the method of FIG. 7 is carried out by requesting (700), by the kernel proxy, that the operating system service node perform the specified operating system service and receiving (704), by the operating system service node, the service performance request (702). Requesting (700), by the kernel proxy, that the operating system service node perform the specified operating system service may be carried out by transmitting a service performance request (702) to a service server on the operating system service node on which the specified operating system service (407) is distributed. The service performance request (702) is a request for an operating system service node to perform an operating system service for the kernel proxy. The service performance request (702) may include the operating system service identifier (402) for the specified operating system service (407). The kernel proxy may transmit the service performance request (702) to a service server on an operating system service node using web services, by calling a member method of a CORBA object, using an MPI library, or any other data communications implementation as will occur to those of skill in the art.

Accessing (602) the specified operating system service (407) of the operating system service node according to the method of FIG. 7 is also carried out by executing (708), by the operating system service node, computer program instructions (706) implementing the specified operating system service (407). The computer program instructions (706) represent machine code implementing the specified operating system service (407). Executing (708), by the operating system service node, computer program instructions (706) implementing the specified operating system service (407) according to the method of FIG. 7 may be carried out by scheduling the computer program instructions (706) implementing the specified operating system service (607) for execution on the operating system service node. After executing the computer program instructions (706), the service server on the operating system service node may transmit a message to the kernel proxy indicating whether the execution was successful.

In view of the explanations set forth above in this document, readers will recognize that providing policy-based operating system services in a hypervisor on a computing system according to embodiments of the present invention provides the following benefits:

-   -   the ability to configure a node with a hypervisor that supports         multiple operating systems, including a light-weight operating         system supported by the hypervisor by providing operating system         services based upon the hardware and software environment of the         node,     -   the ability of a hypervisor to adapt a light-weight operating         system to a new environment or to meet new requirements by         providing a variety of operating system services to support the         operating system, and     -   the ability to reduce the administrative overhead of a         hypervisor by implementing some of the functionality of an         operating system in the hypervisor.

Exemplary embodiments of the present invention are described largely in the context of a fully functional computing system for providing policy-based operating system services in a hypervisor. Readers of skill in the art will recognize, however, that the present invention also may be embodied in a computer program product disposed on signal bearing media for use with any suitable data processing system. Such signal bearing media may be transmission media or recordable media for machine-readable information, including magnetic media, optical media, or other suitable media. Examples of recordable media include magnetic disks in hard drives or diskettes, compact disks for optical drives, magnetic tape, and others as will occur to those of skill in the art. Examples of transmission media include telephone networks for voice communications and digital data communications networks such as, for example, Ethernets™ and networks that communicate with the Internet Protocol and the World Wide Web as well as wireless transmission media such as, for example, networks implemented according to the IEEE 802.11 family of specifications. Persons skilled in the art will immediately recognize that any computer system having suitable programming means will be capable of executing the steps of the method of the invention as embodied in a program product. Persons skilled in the art will recognize immediately that, although some of the exemplary embodiments described in this specification are oriented to software installed and executing on computer hardware, nevertheless, alternative embodiments implemented as firmware or as hardware are well within the scope of the present invention.

It will be understood from the foregoing description that modifications and changes may be made in various embodiments of the present invention without departing from its true spirit. The descriptions in this specification are for purposes of illustration only and are not to be construed in a limiting sense. The scope of the present invention is limited only by the language of the following claims. 

1. A method of providing policy-based operating system services in a hypervisor on a computing system, the computing system comprising at least one compute node, the compute node comprising an operating system and a hypervisor, the operating system comprising a kernel, the hypervisor comprising a kernel proxy and a plurality of operating system services of a service type, wherein the computing system is a distributed computing system further comprising one or more operating system service nodes, wherein one or more of the operating system services are distributed among the operating system service nodes, the method comprising: establishing, on the compute node, a kernel policy specifying one of the operating system services of the service type for use by the kernel proxy in the hypervisor, wherein the kernel policy also specifies an operating system service node that is to provide the specified operating system service; and accessing, by the kernel proxy, the specified operating system service, including accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node.
 2. The method of claim 1 wherein accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node further comprises: retrieving, by the kernel proxy from the operating system service node, computer program instructions implementing the specified operating system service; and executing, by the compute node, the computer program instructions implementing the specified operating system service.
 3. The method of claim 1 wherein accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node further comprises: requesting, by the kernel proxy, that the operating system service node perform the specified operating system service; and executing, by the operating system service node, computer program instructions implementing the specified operating system service.
 4. The method of claim 1 further comprising: determining, by the kernel proxy, whether the kernel proxy is able to access the specified operating system service; and executing, by the compute node, computer program instructions implementing a default operating system service if the kernel proxy is unable to access the specified operating system service.
 5. The method of claim 1 wherein the hypervisor further comprises an operating system service of an other service type, the method further comprising: identifying, by the kernel proxy, whether the kernel policy specifies an operating system service of the other service type; and executing, by the compute node, computer program instructions implementing a default operating system service of the other service type if the kernel policy does not specify an operating system service of the other service type.
 6. The method of claim 1 wherein: the operating system services for the service type have a same application programming interface; and accessing, by the kernel proxy of the compute node, the specified operating system service further comprises accessing the specified operating system service using the same application programming interface for the service type of the specified operating system service.
 7. The method of claim 1 wherein the computing system is a parallel computer.
 8. A computing system for providing policy-based operating system services in a hypervisor, the computing system comprising at least one compute node, the compute node comprising an operating system and a hypervisor, the operating system further comprising a kernel, the hypervisor further comprising a kernel proxy and a plurality of operating system services of a service type, wherein the computing system is a distributed computing system further comprising one or more operating system service nodes, wherein one or more of the operating system services are distributed among the operating system service nodes, the computing system further comprising computer processors and computer memory operatively coupled to the computer processors, the computer memory also having disposed within it computer program instructions capable of: establishing, on the compute node, a kernel policy specifying one of the operating system services of the service type for use by the kernel proxy in the hypervisor, wherein the kernel policy also specifies an operating system service node that is to provide the specified operating system service; and accessing, by the kernel proxy, the specified operating system service, including accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node.
 9. The computing system of claim 8 wherein accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node further comprises: retrieving, by the kernel proxy from the operating system service node, computer program instructions implementing the specified operating system service; and executing, by the compute node, the computer program instructions implementing the specified operating system service.
 10. The computing system of claim 8 wherein accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node further comprises: requesting, by the kernel proxy, that the operating system service node perform the specified operating system service; and executing, by the operating system service node, computer program instructions implementing the specified operating system service.
 11. A computer program product for providing policy-based operating system services in a hypervisor on a computing system, the computing system comprising at least one compute node, the compute node comprising an operating system, the operating system further comprising a kernel and a plurality of operating system services of a service type, wherein the computing system is a distributed computing system further comprising one or more operating system service nodes, wherein one or more of the operating system services are distributed among the operating system service nodes, the computer program product disposed upon a recordable medium, the computer program product comprising computer program instructions capable of: establishing, on the compute node, a kernel policy specifying one of the operating system services of the service type for use by the kernel proxy in the hypervisor, and wherein the kernel policy also specifies an operating system service node that is to provide the specified operating system service; and accessing, by the kernel proxy, the specified operating system service, including accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node.
 12. The computer program product of claim 11 wherein accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node further comprises: retrieving, by the kernel proxy from the operating system service node, computer program instructions implementing the specified operating system service; and executing, by the compute node, the computer program instructions implementing the specified operating system service.
 13. The computer program product of claim 11 wherein accessing, by the kernel proxy of the compute node, the specified operating system service of the operating system service node further comprises: requesting, by the kernel proxy, that the operating system service node perform the specified operating system service; and executing, by the operating system service node, computer program instructions implementing the specified operating system service.
 14. The computer program product of claim 11 further comprising computer program instructions capable of: determining, by the kernel proxy, whether the kernel proxy is able to access the specified operating system service; and executing, by the compute node, computer program instructions implementing a default operating system service if the kernel proxy is unable to access the specified operating system service.
 15. The computer program product of claim 11 wherein the hypervisor further comprises an operating system service of an other service type, the computer program product further comprising computer program instructions capable of: identifying, by the kernel proxy, whether the kernel policy specifies an operating system service of the other service type; and executing, by the compute node, computer program instructions implementing a default operating system service of the other service type if the kernel policy does not specify an operating system service of the other service type. 